package se.ajo.iou.web.common.action;

import java.util.logging.Logger;

import se.ajo.iou.common.exception.BaseException;
import se.ajo.iou.common.log.LoggerConstans;

import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport {

	private static final Logger m_Log = Logger.getLogger(BaseAction.class.getName());
	
	/**
	 * Serialization id
	 */
	private static final long serialVersionUID = 2290837888851100401L;

	
	@Override
	public String execute() throws BaseException {
		
		m_Log.finest(LoggerConstans.IN);
		
		m_Log.fine("Inne i BaseAction");
		
		String result = IOUExecute();
		
		m_Log.finest(LoggerConstans.OUT);
		
		return result;
		
	}
	
	protected abstract String IOUExecute() throws BaseException;

}
